package com.lord.otter.component.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 公共异常枚举
 *
 * @author lord
 * 2025/7/2 11:24
 */
@Getter
@AllArgsConstructor
public enum CommonExceptionEnum implements BusinessExceptionEnumAble {
    LACK_PARAM("000", "缺少参数"),
    OBJ_NOT_FOUND("001", "对象不存在"),
    ILLEGAL_PARAM("002", "参数非法"),
    DELETED("003", "数据已删除"),
    COND_NOT_MET("004", "条件不满足"),
    CONNECT_FAIL("005", "连接错误"),
    VERSION_MISMATCH("006", "数据版本冲突");;

    /**
     * 异常代码
     */
    private final String exceptionCode;

    /**
     * 异常消息
     */
    private final String message;

    /**
     * 业务代码
     */
    private final String businessCode = "100";

}
